package ims.com.shlcm.portal;

import java.util.List;

public class MenuItem {
	private String name;
	private List<MenuItem> childMenus;
	private String groups;
	
	public MenuItem(String name, List<MenuItem> childMenus, String groups) {
		this.name = name;
		this.groups = groups;
		if(this.childMenus.isEmpty()){
			this.childMenus.addAll(childMenus);	
		}else {
			this.childMenus.clear();
			this.childMenus.addAll(childMenus);
		}
		
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public List<MenuItem> getChildMenus() {
		return childMenus;
	}
	
	public void setChildMenus(List<MenuItem> childMenus) {
		this.childMenus = childMenus;
	}
	
	public String getGroups() {
		return groups;
	}
	
	public void setGroups(String groups) {
		groups = groups;
	}
	
	
	
}
